package com.example.Repository;


import com.example.domain.property.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface UserRepository extends JpaRepository<User,Long> {
    //登录方法
    User findByUsernameAndPassword(String username,String password);
}
